import defaultSettings from '@/settings'

import { defineStore } from 'pinia'
const { sideTheme } = defaultSettings

const storageSetting = JSON.parse(localStorage.getItem('layout-setting')) || ''

const useSettingsStore = defineStore(
    'settings', {
        state: () => ({
            title: '',
            theme: storageSetting.theme || '#409EFF',
            sideTheme: storageSetting.sideTheme || sideTheme,
        }),
        actions: {

        }
    })

export default useSettingsStore